$(function () {
    layui.use(['table','layer','laydate','form'], function() {
        var table = layui.table;
        let layer = layui.layer;
        let form = layui.form;
        let laydate = layui.laydate;
        //第一个实例
        table.render({
            elem: '#demo'
            , toolbar: "#barDemo"
            , height: 'full-100'
            , url: '/outlibrary' //数据接口
            , cols: [[ //表头
                {field: 'i_outinno', title: '进出库编号', width: 100, fixed: 'left'}
                , {field: 'i_outtime', title: '出库时间', width: 120}
                , {field: 'i_outnumber', title: '出库数量', width: 100, sort: true}
                , {field: 'i_company', title: '疫苗去向', width: 150}
                , {field: 'v_name', title: '疫苗名称', width: 120}
                , {field: 'i_number', title: '疫苗总数', width: 100, sort: true}
                , {field: 'i_administrator', title: '管理人员', width: 100}
            ]]
            , page: {
                limit: 5,
                limits: [1, 5, 10, 40, 100],
                layout: ['prev', 'page', 'next', 'count', 'limit', 'refresh']
            } //开启分页
        });
    })
})